//
//  AppDelegate.h
//  AirportTraffic
//
//  Created by PJ Gray on 4/18/08.
//  Copyright 2008 SayGoodnight Software. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface AppDelegate : NSObject
{
	IBOutlet NSTextField *totalGigs;
	IBOutlet NSTextField *inRate;
	IBOutlet NSTextField *outRate;
	IBOutlet NSTextField *airportIP;
	IBOutlet NSSecureTextField *communityPassword;
	IBOutlet NSMenu *theMenu;
	IBOutlet NSButton *showInRate;
	IBOutlet NSButton *showOutRate;
	IBOutlet NSButton *showTotal;
	
	unsigned long int prevInVal;
	unsigned long int prevOutVal;
	float totalInMegs;
	float totalOutMegs;
	double totalGigsValue;
	
	NSTimer *timer;
	NSTimer *timerWriteToDisk;
    NSStatusItem *statusItem;

	NSMenuItem *menuItem;

}

- (void)readDatFile;
- (void)applicationDidFinishLaunching: (NSNotification*) aNotification;
- (void)windowDidBecomeKey: (NSNotification*) aNotification;
- (void)windowWillClose: (NSNotification*) aNotification;
- (IBAction)resetTotalGigs:(id)sender;


@end
